﻿import java.util.*;
public class C2{
	public static void main(String[] args){
		System.out.println("输入一个数并回车");
		System.out.println("以#为结束符结束操作");
		Scanner reader=new Scanner(System.in);
		while(!reader.hasNext("#"))
		{
			if(reader.hasNextInt())//判断是否整型
			{
				long Long=reader.nextLong();
				System.out.println(Long+"为整型");
				System.out.print("与整数6相加:");
				System.out.println(Long+6);
				System.out.print("与浮点型6.6相加：");
				System.out.println(Long+6.6);
				System.out.println("与字符串adc相加："+Long+"adc");
			}
			else if(reader.hasNextDouble())//判断是否浮点型
			{
				Double D=reader.nextDouble();
				System.out.println(D+"为浮点型");
				System.out.print("与整数6相加:");
				System.out.println(D+6);
				System.out.print("与浮点型6.6相加：");
				System.out.println(D+6.6);
				System.out.println("与字符串adc相加："+D+"adc");
			}
			else if(reader.hasNext())//判断是否字符串型
			{
				String str=reader.nextLine();
				System.out.println(str+"为字符串");
				System.out.print("与整数6相加:");
				System.out.println(str+6);
				System.out.print("与浮点型6.6相加：");
				System.out.println(str+6.6);
				System.out.println("与字符串adc相加："+str+"adc");
			}
		}
	}
}
